package cn.itcast.dao;


import cn.itcast.entity.OrderQueryPageBean;
import cn.itcast.pojo.Order;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import cn.itcast.pojo.Order;


import java.util.List;
import java.util.Map;

public interface OrderDao {

    Page<Order> findPage(OrderQueryPageBean orderQueryPageBean);

    boolean submitOrder(Order order);

    boolean saveOrder(Order order);

    Order findOrderById(String id);

    boolean updateArrival(String id, Integer arrival);


    Integer findOrderCountByDate(String date);

    Integer findOrderCountAfterDate(String date);

    Integer findVisitsCountByDate(String date);

    Integer findVisitsCountAfterDate(String date);

    List<Map> findHotSetmeal();

    Integer findOrderCountAfterDates(@Param("startDate") String startDate, @Param("endDate") String endDate);


    /*
     * 查询预约
     * */
    List<Order> findByCondition(Order order);

    /*
     *
     * 新增
     * */
    void add(Order order);


    Order findById(String id);

}
